package com.efast.cafe.portal.security.handler;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.AuthenticationSuccessHandler;
import org.springframework.stereotype.Component;
import com.efast.cafe.portal.security.core.AuthenticationFactory;

/**
 * 
    * @ClassName: MyLoginSuccessHandler
    * @Description: 登录成功handler 
    * @author xuanming.feng
    * @date 2018年8月3日
    *
 */
@Component
public class MyLoginSuccessHandler implements AuthenticationSuccessHandler{

	
	@Override
	public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response,
			Authentication authentication) throws IOException, ServletException {
		AuthenticationFactory.onAuthenticationSuccess(request, response, authentication);
	}

}
